#include <stdio.h>
int main(void)
{
	char str1[20] = "666 jin";
	int id = 0;
	char name[10] = {'\0'};
	// 这里不字符串666转换成了数字
	sscanf(str1,"%d %s",&id,name);
	printf("id = %d,name = %s\n",id,name);
	// 不数字666转换成字符串666
	char number[5] = {'\0'};
	sprintf(number,"%d",id);
	printf("number = %s\n",number);
	return 0;
}
